<?php
###############   COPYLEFT GPLv3 LICENSE   ###############
##
## JFX Version 0.2.7
## Website Management Software
## www.jfxcms.com
##
## Copyright 2009 GPLv3 - http://www.opensource.org/licenses/gpl-3.0.html
##
## Anthony Gallon
## oi_antz@hotmail.com
##
## Permission is hereby granted to any person having a copy of this software
## to freely use and modify as required so long as the copyright notices
## and branding remain intact.
##
## Full license details available at http://www.jfxcms.com/license
##
###############   COPYLEFT GPLv3 LICENSE   ###############

$lang = array(
    'sitename' => 'My JFX Website',
    'ap_title_admin' => 'Administration',
    'ap_title_login' => 'Login',
    'ap_title_credits' => 'Credits',
    'ap_title_default' => 'Home',
    'ap_title_delete-page' => 'Delete Page',
    'ap_title_dev-stats' => 'Dev Stats',
    'ap_title_domains' => 'Domains',
    'ap_title_edit-page' => 'Edit Page',
    'ap_title_export' => 'Import &amp; Export',
    'ap_title_lang' => 'Languages',
    'ap_title_modules' => 'Modules',
    'ap_title_new-page' => 'New Page',
    'ap_title_perms' => 'Permissions',
    'ap_title_preview-page' => 'Preview',
    'ap_title_run-test' => 'Run Test',
    'ap_title_sort-pages' => 'Sort Pages',
    'ap_title_test-load' => 'Test Load',
    'ap_title_users' => 'Users',
    'ap_title_workspaces' => 'Workspaces',
    'ap_title_export_export-block' => 'Export Block',
    'ap_title_export_export-page' => 'Export Page',
    'ap_title_export_import-block' => 'Import Block',
    'ap_title_export_import-page' => 'Import Page',
    'ap_title_export_import-template' => 'Import Template',
    'ap_title_lang_install' => 'Install',
    'ap_title_lang_translate' => 'Translate',
    'ap_title_modules_admin' => 'Administration',
    'ap_title_modules_list' => 'List',
    'ap_title_modules_order' => 'Sort',
    'ap_title_workspaces_assign' => 'Assign Users',
    'ap_title_workspaces_copy' => 'Copy Content',
    'ap_title_workspaces_list' => 'List',
    'ap_title_workspaces_new' => 'New',
    'ap_title_workspaces_publishing' => 'Publishing',

    'menu_title_website_templates' => 'Templates',
    'menu_title_new_template' => 'New Template',
    'menu_title_view_templates' => 'View Templates',
    

    'menu_title_website_content' => 'Website Content',
    'menu_title_user_management' => 'User Management',
    'menu_title_system_configuration' => 'System Configuration',
    'menu_title_import_export' => 'Import &amp; Export',
    'menu_title_import_export_2' => 'Import &amp; Export',
    'menu_title_import_page' => 'Import Page',
    'menu_title_import_block' => 'Import Block',
    'menu_title_import_template' => 'Import Template',
    'menu_title_export_page' => 'Export Page',
    'menu_title_export_block' => 'Exprot Block',
    'menu_title_modules' => 'Modules &amp; Extensions',
    'menu_title_module_list' => 'Module List',
    'menu_title_languages' => 'Languages &amp; Translation',
    'menu_title_install_language' => 'Install New Language',
    'menu_title_translate_system' => 'Translate System',
    'menu_title_domains' => 'Domains &amp; Websites',
    'menu_title_new_domain' => 'Create New Domain',
    'menu_title_set_domain_root' => 'Set Domain Root Page',
    'menu_title_delete_domain' => 'Delete a Domain',
    'menu_title_workspaces' => 'Workspaces &amp; Versioning',
    'menu_title_list_workspaces' => 'List Workspaces',
    'menu_title_new_workspace' => 'New Workspace',
    'menu_title_workspace_users' => 'Workspace Users',
    'menu_title_merge_workspaces' => 'Merge Workspaces',
    'menu_title_staff_management' => 'Staff Management',
    'menu_title_staff_permissions' => 'Staff Permissions',
    'menu_title_staff_users' => 'Staff User List',
    'menu_title_website_pages' => 'Website Pages',
    'menu_title_sort_pages' => 'Sort Pages',
    'menu_title_view_pages' => 'View Pages',
    'menu_title_new_page' => 'New Page',
    

    'session_expired_force_login' => 'Your session has expired, please login again',

    'module_name' => 'Module Name',
    'theme_name' => 'Theme Name',
    'install_uninstall' => 'Install / Uninstall',
    'io' => 'I/O',
    'administration' => 'Administration',
    'import_export' => 'Import / Export',
    'cannot_uninstall_core_module' => 'Cannot uninstall core module!',
    'uninstall_legend' => 'Uninstall Module %s',
    'confirm_uninstall' =>'Uninstall Now',
    'uninstall_pre_message' => 'Are you sure you want to uninstall this module?',
    'install_pre_message' => 'This operation may alter your database and files, continue?',
    
    'page_parent' => 'Parent Page',
    'page_legend' => 'Edit Page Details',
    'page_edit_details' => 'Edit Page Details',
    'domain_legend' => 'Edit Domain Details',
    'perm_super_admin' => 'Super Admin (Unrestricted)',
    'perm_grant_permissions' => 'Grant Admin User Permissions',
    'perm_manage_users' => 'Manage Admin Users',
    'perm_edit_page' => 'Edit page content',
    'perm_manage_modules' => 'Manage modules',
    'perm_create_page' => 'Create pages',
    'perm_create_blocks' => 'Create blocks',
    'perm_edit_blocks' => 'Edit blocks',
    'perm_save_templates' => 'Save templates',
    'perm_manage_domains' => 'Manage Domains',
    'perm_manage_workspaces' => 'Manage Workspaces',
    'perm_manage_pages' => 'Manage Pages',
    'perm_manage_configuration' => 'Manage Configuration',
    'perm_publish_workspaces' => 'Copy Workspace Content',
    'perm_edit_block' => 'Edit Block Content',
    'perm_delete_block' => 'Delete Blocks',
    'perm_save_block_template' => 'Save Block Templates',
    'perm_style_block' => 'Edit Block Styles',
    'perm_move_block' => 'Move Blocks',
    'perm_delete_pages' => 'Delete Pages',
    'perm_export_block' => 'Export Blocks',
    'perm_export_page' => 'Export Pages',
    'perm_import_block' => 'Import Blocks',
    'perm_import_page' => 'Import Pages',
    'perm_import_template' => 'Import Template',
    'perm_install_modules' => 'Install Modules',
    'perm_uninstall_modules' => 'Un-install Modules',
    'perm_manage_languages' => 'Manage Languages',
    'perm_translate_system' => 'Translate System',
    'perm_new_workspace' => 'New Workspace'
















);




$contentLang = array(
    array(
        'label' => 'page_title',
        'id' => '1',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_menu',
        'id' => '1',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_content',
        'id' => '1',
        'value' => ''
    ),
    array(
        'label' => 'page_title',
        'id' => '2',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_menu',
        'id' => '2',
        'value' => $CONFIG->domain
    ),
    array(
        'label' => 'page_content',
        'id' => '2',
        'value' => ''
    ),
    array(
        'label' => 'page_title',
        'id' => '3',
        'value' => 'Templates'
    ),
    array(
        'label' => 'page_menu',
        'id' => '3',
        'value' => 'Templates'
    ),
    array(
        'label' => 'page_content',
        'id' => '3',
        'value' => ''
    ),
    array(
        'label' => 'page_title',
        'id' => '4',
        'value' => 'Home Page'
    ),
    array(
        'label' => 'page_menu',
        'id' => '4',
        'value' => 'Home Page'
    ),
    array(
        'label' => 'page_content',
        'id' => '4',
        'value' => ''
    ),
    array(
        'label' => 'page_title',
        'id' => '5',
        'value' => 'System Pages'
    ),
    array(
        'label' => 'page_menu',
        'id' => '5',
        'value' => 'System Pages'
    ),
    array(
        'label' => 'page_content',
        'id' => '5',
        'value' => ''
    ),
    array(
        'label' => 'page_title',
        'id' => '6',
        'value' => '404 Not Found'
    ),
    array(
        'label' => 'page_menu',
        'id' => '6',
        'value' => '404 Not Found'
    ),
    array(
        'label' => 'page_content',
        'id' => '6',
        'value' => ''
    ),
    array(
        'label' => 'workspace_title',
        'id' => '1',
        'value' => 'Live Workspace'
    ),
    array(
        'label' => 'workspace_title',
        'id' => '2',
        'value' => 'Draft Workspace'
    )

);
























$lang['templates_help'] = <<<HELP
<h1>Help with templates</h1>
<p>There is only one physical template file which is used for every single page
rendered by the CMS. You should never be concerned with changing that file, instead
JFX provides ample means for managing templates via the administration interface.
It is from the point-and-click management of templates that JFX distinguishes itself.</p>
<p>JFX Templates are blocks that you can drag onto a page in the same way you can
add module blocks to your pages. Templates have a specific purpose so that every time you
add a template to a page it is a reference to a single block. This means that if
you have added a template to 20 pages throughout your website, a change to the
template will be reflected across all 20 pages. As such, templates cannot be altered
at page level, however, may contain divs into which any other block can be dragged onto
when editing a page so that any page can have unique content as well as references to
templates.
</p>
<p>Every div in your template that is droppable (meaning other blocks can be inserted
into it), must contain a classname "droppable" and must have an ID. The ID becomes
important when you want to swap templates (for example your existing page uses a
three colum layout and you want to change to a two-column layout.</p>
<p>"Root Div", "Root Style" and "Root Script" are terms for the outermost elements in your template. It is a
requirement that all templates must have a Root div and all other html tags (except the root "style" and "script" tags)
must be an ancestor of the Root div. The root div and any droppable divs must have
an id attribute.</p>
<p>The root "style" and "script" tags will be rendered inside the
head tags. Notice that only script and style tags that are declared outside the
root div will be displayed in the head. If you define style or script tags within the
root div, these will not be moved.</p>
<p>There are two ways to edit a template, and the process of creating a template
will usually involve them both. First thing you must do is declare the elements
of the template as pure XHTML. You can do this by typing into the codepress editor
or uploading a text file. The system will check that it complies with requirements
and when successful you will be able to edit the template by dragging blocks onto
it in the same manner of editing a page.</p>

HELP;





$lang['templates_intro'] = <<<INTRO
<p>A hand coder might prefer to type a template into the form. To do this you need
to know HTML and optionally CSS and JavaScript. If you are more comfortable
dragging blocks to the page, you can enter the following code and continue to 
step 2.</p>
<pre>
<code>
&lt;div id="my-new-div" class="droppable">&lt;/div>
&lt;style type="text/css">&lt/style>
&lt;script type="text/javascript" language="javascript">&lt/script>
</code>
</pre>
<h3>Tip</h3>
<p>Use class="droppable" on divs that will contain dynamic content. Compare
with other CMS's which use a token such as {\$content}, ###CONTENT###,
&lt;joc:include type="module" ...>, {content name="" ...}, :|content|: or
whatever other pattern someone may come up with. All it does is tell the system
that this is a placeholder to be replaced with dynamic content. In JFX, you will
be able to drag blocks onto the droppable divs.
</p>
<p><a href="{$CONFIG->prefix}{$CONFIG->adminFolder}/templates/help/">Click here for more help</a></p>
INTRO;






